//
//  UIColor+MGAdd.m
//  MGKit
//
//  Created by 赖锋海 on 2018/7/28.
//

#import "UIColor+MGAdd.h"

@implementation UIColor (MGAdd)

+ (UIColor *)themeBackgroundColor {
    return [UIColor colorWithRed:248/255.f green:248/255.f blue:248/255.f alpha:1];
}

+ (UIColor *)themeForegroundColor {
    return [UIColor colorWithRed:255/255.f green:89/255.f blue:150/255.f alpha:1];
}

+ (UIColor *)themeCalendarForegroundColor {
    return [UIColor colorWithRed:241/255.f green:241/255.f blue:241/255.f alpha:1];
}

//导航栏颜色
+ (UIColor *)themeBarColor {
    return [UIColor colorWithRed:231/255.f green:231/255.f blue:231/255.f alpha:1];
}

+ (UIColor *)themeTabBarColor {
    return [UIColor colorWithRed:58/255.f green:60/255.f blue:62/255.f alpha:1];
}

+ (UIColor *)themeRedColor {
    return [UIColor colorWithRed:255/255.f green:0/255.f blue:94/255.f alpha:1];
}

+ (UIColor *)themePlaceholderColor {
    return [UIColor colorWithRed:44/255.f green:43/255.f blue:65/255.f alpha:1];
}

+ (UIColor *)tableViewCellSelectionStyleColor {
    return [UIColor colorWithWhite:1 alpha:0.06];
}

/*------------------------------------------------------------*/

+ (UIColor *)mgccGreenColor {
    return [UIColor colorWithRed:39/255.f green:214/255.f blue:163/255.f alpha:1];
}

+ (UIColor *)mgccLinkGreenColor {
    return [UIColor colorWithRed:142/255.f green:242/255.f blue:213/255.f alpha:1];
}

+ (UIColor *)mgccYellowColor {
    return [UIColor colorWithRed:230/255.f green:230/255.f blue:69/255.f alpha:1];
}

+ (UIColor *)mgccYellowColor_white {
    return [UIColor colorWithRed:255/255.f green:216/255.f blue:26/255.f alpha:1];
}

+ (UIColor *)mgccBackgroundColor {
    return [UIColor colorWithRed:18/255.f green:18/255.f blue:21/255.f alpha:1];
}

+ (UIColor *)mgccBackgroundColor_white {
    return [UIColor colorWithRed:254/255.f green:255/255.f blue:254/255.f alpha:1];
}

+ (UIColor *)mgccSeparatorColor {
    return [UIColor colorWithWhite:1 alpha:0.06];
}

+ (UIColor *)mgccSeparatorColor_white {
    return [UIColor colorWithRed:84/255.f green:92/255.f blue:113/255.f alpha:0.06];
}

+ (UIColor *)mgccAvatarBorderColor {
    return [UIColor colorWithRed:153/255.f green:153/255.f blue:153/255.f alpha:0.3];
}

+ (UIColor *)mgccAttentionButtonNormalStateColor {
    return [UIColor colorWithRed:39/255.f green:214/255.f blue:163/255.f alpha:0.15];
}

+ (UIColor *)mgccAttentionButtonSelectedStateColor {
    return [UIColor colorWithRed:84/255.f green:92/255.f blue:113/255.f alpha:0.4];
}

+ (UIColor *)mgccAttentionButtonSelectedStateColor_white {
    return [UIColor colorWithRed:84/255.f green:92/255.f blue:113/255.f alpha:0.1];
}

+ (UIColor *)mgccButtonDisabledStateColor {
    return [UIColor colorWithWhite:1 alpha:0.12];
}

+ (UIColor *)mgccButtonDisabledStateColor_white {
    return [UIColor colorWithRed:84/255.f green:92/255.f blue:113/255.f alpha:0.12];
}





/****************************************************************************/

/// 文字链接 #40B6C6 rgba(64, 182, 198, 1)
+ (UIColor *)mgcTextLinkColor{
    return [UIColor colorWithRed:0/255.f green:163/255.f blue:255/255.f alpha:1];
}

/// 主色 #6CC5D1 rgba(108, 197, 209, 1)
+ (UIColor *)mgcDominantColor{
    return [UIColor colorWithRed:255/255.f green:89/255.f blue:150/255.f alpha:1];
}

/// 弱化 #7ACAD5 rgba(122, 202, 213, 1)
+ (UIColor *)mgcDominantColorWeaken1{
    return [UIColor colorWithRed:122/255.f green:202/255.f blue:213/255.f alpha:1];
}

/// 弱化 #89D1DA rgba(137, 209, 218, 1)
+ (UIColor *)mgcDominantColorWeaken2{
    return [UIColor colorWithRed:137/255.f green:209/255.f blue:218/255.f alpha:1];
}

/// 弱化 #98D6DE rgba(152, 214, 222, 1)
+ (UIColor *)mgcDominantColorWeaken3{
    return [UIColor colorWithRed:152/255.f green:214/255.f blue:222/255.f alpha:1];
}

/// 辅助色 #FFBE60 rgba(255, 190, 96, 1)
+ (UIColor *)mgcAuxiliaryColor{
    return [UIColor colorWithRed:255/255.f green:190/255.f blue:96/255.f alpha:1];
}

/// 弱化 #FFC46F rgba(255, 196, 111, 1)
+ (UIColor *)mgcAuxiliaryColorWeaken1{
    return [UIColor colorWithRed:255/255.f green:196/255.f blue:111/255.f alpha:1];
}

/// 弱化 #FFCB80 rgba(255, 203, 128, 1)
+ (UIColor *)mgcAuxiliaryColorWeaken2{
    return [UIColor colorWithRed:255/255.f green:203/255.f blue:128/255.f alpha:1];
}

/// 弱化 #FFD18F rgba(255, 209, 143, 1)
+ (UIColor *)mgcAuxiliaryColorWeaken3{
    return [UIColor colorWithRed:255/255.f green:209/255.f blue:143/255.f alpha:1];
}

/// 功能配色 #91C194 rgba(145, 193, 148, 1)
+ (UIColor *)mgcFunctionMatchColor1{
    return [UIColor colorWithRed:145/255.f green:193/255.f blue:148/255.f alpha:1];
}

/// 弱化 #9CC79E rgba(156, 199, 158, 1)
+ (UIColor *)mgcFunctionMatchColor1Weaken1{
    return [UIColor colorWithRed:156/255.f green:199/255.f blue:158/255.f alpha:1];
}

/// 弱化 #A7CDA9 rgba(167, 205, 169, 1)
+ (UIColor *)mgcFunctionMatchColor1Weaken2{
    return [UIColor colorWithRed:167/255.f green:205/255.f blue:169/255.f alpha:1];
}

/// 弱化 #B2D3B4 rgba(178, 211, 180, 1)
+ (UIColor *)mgcFunctionMatchColor1Weaken3{
    return [UIColor colorWithRed:178/255.f green:211/255.f blue:180/255.f alpha:1];
}

/// 功能配色 #92CAF1 rgba(146, 202, 241, 1)
+ (UIColor *)mgcFunctionMatchColor2{
    return [UIColor colorWithRed:146/255.f green:202/255.f blue:241/255.f alpha:1];
}

/// 弱化 #9CCFF2 rgba(156, 207, 242, 1)
+ (UIColor *)mgcFunctionMatchColor2Weaken1{
    return [UIColor colorWithRed:156/255.f green:207/255.f blue:242/255.f alpha:1];
}

/// 弱化 #A8D5F4 rgba(168, 213, 244, 1)
+ (UIColor *)mgcFunctionMatchColor2Weaken2{
    return [UIColor colorWithRed:168/255.f green:213/255.f blue:244/255.f alpha:1];
}

/// 弱化 #B2D9F5 rgba(178, 217, 245, 1)
+ (UIColor *)mgcFunctionMatchColor2Weaken3{
    return [UIColor colorWithRed:178/255.f green:217/255.f blue:245/255.f alpha:1];
}

/// 错误警示 #FC966E rgba(252, 150, 110, 1)
+ (UIColor *)mgcCautionColor{
    return [UIColor colorWithRed:252/255.f green:150/255.f blue:110/255.f alpha:1];
}

/// 弱化 #FCA07C rgba(252, 160, 124, 1)
+ (UIColor *)mgcCautionColorWeaken1{
    return [UIColor colorWithRed:252/255.f green:160/255.f blue:124/255.f alpha:1];
}

/// 弱化 #FDAB8B rgba(253, 171, 139, 1)
+ (UIColor *)mgcCautionColorWeaken2{
    return [UIColor colorWithRed:253/255.f green:171/255.f blue:139/255.f alpha:1];
}

/// 弱化 #FCB599 rgba(252, 181, 153, 1)
+ (UIColor *)mgcCautionColorWeaken3{
    return [UIColor colorWithRed:252/255.f green:181/255.f blue:153/255.f alpha:1];
}

/// 白色背景色 #FEFFFE rgba(254, 255, 254, 1)
+ (UIColor *)mgcBackgroundColor1{
    return [UIColor colorWithRed:244/255.f green:244/255.f blue:244/255.f alpha:1];
}

/// 黑色背景色 #121215 rgba(18, 18, 21, 1)
+ (UIColor *)mgcBackgroundColor2{
    return [UIColor colorWithRed:18/255.f green:18/255.f blue:21/255.f alpha:1];
}

/// 重要文字（标题、正文） #333333 rgba(51, 51, 51, 1)
+ (UIColor *)mgcNavWordColor {
    return [UIColor whiteColor];
}

/// 重要文字（标题、正文） #333333 rgba(51, 51, 51, 1)
+ (UIColor *)mgcMainWordColor{
    return [UIColor colorWithRed:31/255.f green:31/255.f blue:31/255.f alpha:1];
}

/// 次要文字（次要信息） #666666 rgba(102, 102, 102, 1)
+ (UIColor *)mgcSubWordColor{
    return [UIColor colorWithRed:102/255.f green:102/255.f blue:102/255.f alpha:1];
}

/// 辅助文字（辅助信息） #999999 rgba(153, 153, 153, 1)
+ (UIColor *)mgcAuxiliaryWordColor{
    return [UIColor colorWithRed:153/255.f green:153/255.f blue:153/255.f alpha:1];
}

/// 辅助配色（弱化信息） #CCCCCC rgba(204, 204, 204, 1)
+ (UIColor *)mgcAuxiliaryMatchColor1{
    return [UIColor colorWithRed:204/255.f green:204/255.f blue:204/255.f alpha:1];
}

/// 辅助配色（背景用色） #DDDDDD rgba(221, 221, 221, 1)
+ (UIColor *)mgcAuxiliaryMatchColor2{
    return [UIColor colorWithRed:221/255.f green:221/255.f blue:221/255.f alpha:1];
}

/// 辅助配色（描边分割线） #EEEEEE rgba(238, 238, 238, 1)
+ (UIColor *)mgcAuxiliaryMatchColor3{
    return [UIColor colorWithRed:238/255.f green:238/255.f blue:238/255.f alpha:1];
}

/// 辅助配色（背景用色） #F7F7F7 rgba(247, 247, 247, 1)
+ (UIColor *)mgcAuxiliaryMatchColor4{
    return [UIColor colorWithRed:247/255.f green:247/255.f blue:247/255.f alpha:1];
}

/// 全局图片描边色
+ (UIColor *)mgcImageOutlineColor {
    return [UIColor colorWithRed:0 green:0 blue:0 alpha:0.04];
}

/// 全局头像描边色
+ (UIColor *)mgcAvatarImageOutlineColor {
    return [UIColor colorWithRed:153/255.f green:153/255.f blue:153/255.f alpha:0.3];
}

@end
